body {
	margin: 0;
	padding: 0;
}

.container {
	box-sizing: border-box;
	width: 100%;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-items:center;
	padding: 10px;
}

.one, .two ,.three {
	border: 1px solid red;
	width: 150px;
	margin: 10px;
}

.one {
	height: 120px;
}

.two {
	height: 100px;
}

.three {
	height: 40px;
}

.four {
	border: 1px solid blue;
	width: 150px;
	height: 200px;
	margin: 10px;
}

@media screen and (max-width: 640px) {
	.container {
		align-items: flex-start;
	}

	.four {
		order: -1;
	}
}